import request from "@/admin/utils/request"

//添加
export function addDict(data) {
    return request({
        url: "/apis/base/dict", method: "post", data
    });
}

//列表
export function dictList(params, id) {
    return request({
        url: "/apis/base/dict", method: "get", params, id
    });
}

//删除
export function delDict(id) {
    return request({
        url: `/apis/base/dict/${id}`, method: "delete",
    });
}

//更新
export function upDateDict(data, id) {
    return request({
        url: `/apis/base/dict/${id}`, method: "put", data
    });
}
